package top.abrsm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author WuZH
 * @since 2023-11-18
 */
@Data
@TableName ( "file_info" )
@ApiModel ( value = "FileEntity对象", description = "" )
public class FileEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "文件路径" )
    @TableField ( "filePath" )
    private String filePath;

    @ApiModelProperty ( "文件类型" )
    @TableField ( "fileType" )
    private String fileType;

    @ApiModelProperty ( "文件大小" )
    @TableField ( "fileSize" )
    private Integer fileSize;

    @ApiModelProperty ( "文件关联的表主键id" )
    @TableField ( "fileJoinId" )
    private String fileJoinId;

    @ApiModelProperty ( "文件关联表类型：1 轮播图; 2 商品表; 3 用户表；4 贴吧图片；5 贴吧视频" )
    @TableField ( "fileJoinType" )
    private Integer fileJoinType;

    @TableField ( "createTime" )
    private Date createTime;

    @TableField ( "changeTime" )
    private Date changeTime;

    @TableField ( "isUsed" )
    private Integer isUsed;


}
